package com.wande.dataplatform.filecollection.domain.vo;

import cn.idev.excel.annotation.ExcelProperty;
import com.wande.dataplatform.filecollection.domain.CollectionRule;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 文件采集规则视图对象
 *
 * @author wande
 */
@Data
@AutoMapper(target = CollectionRule.class)
public class CollectionRuleVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 租户ID
     */
    @ExcelProperty(value = "租户ID")
    private Long tenantId;

    /**
     * 规则名称
     */
    @ExcelProperty(value = "规则名称")
    private String ruleName;

    /**
     * 规则编码
     */
    @ExcelProperty(value = "规则编码")
    private String ruleCode;

    /**
     * 文件类型
     */
    @ExcelProperty(value = "文件类型")
    private String fileType;

    /**
     * 来源类型
     */
    @ExcelProperty(value = "来源类型")
    private String sourceType;

    /**
     * 来源配置
     */
    @ExcelProperty(value = "来源配置")
    private String sourceConfig;

    /**
     * 调度类型
     */
    @ExcelProperty(value = "调度类型")
    private String scheduleType;

    /**
     * 调度配置
     */
    @ExcelProperty(value = "调度配置")
    private String scheduleConfig;

    /**
     * 目标数据库
     */
    @ExcelProperty(value = "目标数据库")
    private String targetDatabase;

    /**
     * 目标表
     */
    @ExcelProperty(value = "目标表")
    private String targetTable;

    /**
     * 入库策略
     */
    @ExcelProperty(value = "入库策略")
    private String loadStrategy;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 映射规则ID
     */
    @ExcelProperty(value = "映射规则ID")
    private Long mappingRuleId;

    /**
     * DolphinScheduler任务ID
     */
    @ExcelProperty(value = "DolphinScheduler任务ID")
    private Long dsTaskId;

    /**
     * 创建者
     */
    @ExcelProperty(value = "创建者")
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    @ExcelProperty(value = "更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;
}
